package com.bkgy.modular.rollParameter.controller;

import com.alibaba.fastjson.JSONObject;
import com.bkgy.modular.rollParameter.service.RollParameterService;
import com.bkgy.sys.common.entity.ResultData;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author ZhuHongKai
 * @version 1.0
 * @ClassName rollParameterController
 * @date 2022/12/29 14:00
 * 轧制参数优化
 */
@RestController
@RequestMapping("/rollParameter")
public class RollParameterController {

    @Resource
    RollParameterService rollParameterService;

    @PostMapping("/findByData")
    public ResultData findByRollParameterData(@RequestBody JSONObject jsonObject){
        return rollParameterService.rollParameterMethods(jsonObject);
    }
}
